home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lantools / mnetcp11 / mnetcapt.doc next >
Text File  |  1990-08-13  |  8KB  |  183 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.                                 MNETCAPT.EXE
  8.                               (Screen Capture)
  9.                            written by Robert Laird
  10.  
  11.                                 Version 1.1
  12.                                   8/13/90
  13.  
  14.  
  15.  
  16. ║ MNETCAPT is a TSR which wakes up every minute to see if the Banyan MNET
  17. ║ screen (the initial screen) is present.  If so, MNETCAPT captures the data
  18. ║ for the nine servers showing on the screen, then PgDn's to capture the data
  19. ║ for all the remaining servers (up to 495).  Data is saved in files, one file
  20. ║ for each server: the file name is the current date, the extension is a
  21. ║ consequtive server number.  Data inside the files is in comma-delimited form.
  22. ║ MNETCAPT is a Shareware program.  Use it for 10 days; if you find it useful
  23. ║ and want to use it for your Banyan network, please forward $20 per server to:
  24. ║   Robert Laird                            ║ If you have more than 12 servers,
  25. ║   13164 Memorial Dr.  Suite 126           ║ the fee is $250 for unlimited
  26. ║   Houston, TX 77079                       ║ number of servers.
  27. ║ Comments and suggestions are always welcome.  Please contact me via the HUB
  28. ║ BBS @ 713-627-4922 or via CompuServe 70070,460.
  29. ║ The above fees are hereby waivered for Panhandle Eastern Corporation.
  30.  
  31.  
  32.  
  33.  Loading Procedure for MNETCAPT
  34.  
  35.  1. Login to your Banyan network.
  36.  2. Run SETMSGS OFF.
  37.  3. (optional) Use the MARK program to mark a place in memory, for
  38.     possible future release of the program from memory.
  39.  4. Run MNETCAPT.*
  40.  5. Run MNET.
  41.  6. When all servers are listed, highlight each one and press ENTER to
  42.     select all servers on your network.  Press F10.  When the 'VINES
  43.     Network Summary' screen appears, you are finished.  DO NOT PRESS ANY
  44.     OTHER KEY.
  45.  
  46.  * It is highly recommended that when you run MNETCAPT, that your default
  47.    drive is a "local" PC hard drive (e.g, C:)...  If you have MNETCAPT
  48.    writing to a network drive and the network drive becomes unavailable,
  49.    MNETCAPT will not recover from a "drive not ready" DOS error.
  50.  
  51.  At this point, MNETCAPT waits for the VINES Network Summary screen to
  52.  appear. When that screen is present, and the timer has counted 60
  53.  seconds, MNETCAPT then begins its process of capturing the data from
  54.  all the screens.  (NOTE:  If MNETCAPT does not "see" the proper screen,
  55.  it will emit a low-frequency beep (kind of a grunt) to let you know
  56.  that it woke up and discovered that the proper screen was not available
  57.  for processing.  After this discovery, MNETCAPT will immediately go
  58.  back to sleep for another minute.)
  59.  
  60.  If you watch the screen, you'll see MNETCAPT process each screen of
  61.  server data until there are no more servers.  MNETCAPT then saves the
  62.  data it collected to the appropriate files, then performs a series of
  63.  PgUp keystrokes to return to the top.
  64.  
  65.  Executing the MNETCAPT program more than once will NOT load multiple
  66.  copies into memory. MNETCAPT will sense that it has already been loaded,
  67.  and will abort the attempt. The original MNETCAPT will not be affected
  68.  by this attempt.
  69.  
  70.  Every day, you can take the data from the previous day and load it into
  71.  an application program such as dBASE, Quattro Pro, Lotus, etc., and
  72.  write programs or macros to chart, graph or print the data. (Personally,
  73.  I use (and love) Quattro Pro v1.x; version 2.0 will have 3-D graphs.)
  74.  
  75.  
  76.  Breaks in the routine
  77.  
  78.  In general, it is strongly suggested that you dedicate a PC for running
  79.  MNET and capturing data via MNETCAPT.
  80.  
  81.  However, you may have a reason to "break the routine" by exiting MNET or
  82.  changing to another screen. If you do this, MNETCAPT will not continue
  83.  capturing the screen data. When you return to the 'VINES Network
  84.  Summary' screen, MNETCAPT will again begin to capture the screen. It is
  85.  important to note that your data files will have a break in them. For
  86.  example, a portion of your data file may look like this:
  87.  
  88.          34521,648,HOU.05,0.00,0.00,0.00,90.59,264431,266592,0,0.00
  89.          34521,649,HOU.05,0.01,0.01,0.01,92.39,267246,269332,0,0.00
  90.          34521,658,HOU.05,0.03,0.02,0.02,64.28,269116,271132,0,0.00
  91.          34521,659,HOU.05,0.00,0.00,0.00,80.71,274116,276117,0,0.00
  92.  
  93.  There is a break between minute 649 and 658. If you process your data in
  94.  Lotus, Quattro, dBASE or other application package, make sure you
  95.  account for the possibility of a break such as this.
  96.  
  97.  If you do execute other portions of MNET, it is likely that you will
  98.  return to the VINES Network Summary screen, and the list of servers
  99.  will not be at the "top", i.e., will not show the first server on
  100.  the list of servers as the first server on the screen.  If this is
  101.  the case, make sure you PgUp until you are at the top of the list
  102.  of servers befor MNETCAPT has a chance to capture any more data.
  103.  
  104.  WARNING:  Due to the way that MNET runs on Banyan, it is not advisable
  105.            to stop and start MNET through the normal course of the day.
  106.            If there are no other PCs running MNET, and MNET is stopped
  107.            for any length of time, the Message Averages and other data
  108.            are reset, thus making any previously captured data invalid.
  109.  
  110.  
  111.  
  112.  Technical Description
  113.  
  114.  Written in Turbo Pascal 5.5, this program uses an Interrupt Service
  115.  Routine (ISR) and some special intervention code supplied via the Power
  116.  Tool Plus/5.0 library.  This program, when executed, goes TSR and wakes
  117.  up every minute.  It looks to see if 'VINES Network Summary' exists in
  118.  the top right corner of the screen, and if it does, then captures the 9
  119.  lines of data from MNET, stuffs a PgDn into the keyboard buffer, goes to
  120.  sleep for 5/18ths of a second to let MNET do a PgDn, then wakes up
  121.  again, captures the next 9 lines, etc. After all server info is
  122.  captured, the data is saved to x files, where x is the number of servers
  123.  it found data on. For example, if there are 3 servers and today is
  124.  August 10, 1990, then it would create:
  125.  
  126.                           900810.001
  127.                           900810.002
  128.                           900810.003
  129.  
  130.  Every minute, it appends new data to these files.  The data is parsed
  131.  into comma delimited format.  The first field is the nth minute of the
  132.  day; for example, at 8am, it is 8*60, or 480th minute of the day.  The
  133.  second field is the server name, etc.  No other processes are performed.
  134.  
  135.  The first line of a new day will always be the date; the second line will
  136.  always be the server name.  The first two entries on each subsequent line
  137.  are the Julian date and the minute of the day.  In Quattro or Lotus, the
  138.  Julian date can be formatted with the Range,Format,Date command.
  139.  
  140.  Example of the contents of a data file:
  141.  
  142.          8/10/90
  143.          HOU.05
  144.          34521,648,HOU.05,0.00,0.00,0.00,90.59,264431,266592,0,0.00
  145.          34521,649,HOU.05,0.01,0.01,0.01,92.39,267246,269332,0,0.00
  146.          34521,650,HOU.05,0.03,0.02,0.02,64.28,269116,271132,0,0.00
  147.          34521,651,HOU.05,0.00,0.00,0.00,80.71,274116,276117,0,0.00
  148.  
  149.  
  150.  Future additions
  151.  
  152.  I am anticipating that some users will want the data in SDF format
  153.  instead of comma-delimited format. This change would be fairly easy to
  154.  make, but I will not make it unless it is specifically asked for. I am
  155.  also toying with the idea of saving the data in .DBF format (dBASE), but
  156.  that would make the program considerable larger than the 149K that it is
  157.  now.
  158.  
  159.  If any additional parsing or data reduction is requested (and makes
  160.  sense), I will be happy to consider including it.
  161.  
  162.  At this writing (8/10/90), it is anticipated that within 2 to 6 months,
  163.  Banyan will be releasing the MNET API's. When these API's are available,
  164.  capturing this type of data will be possible without running MNET and
  165.  plucking data off the screen. However, unless someone writes a
  166.  server-based service to collect MNET data, it will still require a
  167.  dedicated PC to be running the collection program.
  168.  
  169.  If you need to capture data for more than 495 servers, I WOULD LOVE TO
  170.  HEAR FROM YOU!
  171.  
  172.  Size:  Loaded, MNETCAPT takes up about 150,000 bytes.  A lot of that
  173.         space is needed for the potential 495 servers and their data.
  174.         If space is a problem, let me know how many servers you have
  175.         and I'll be happy to recompile it to reduce the load size.
  176.  
  177.